package com.qianfeng.qlm.handforireader.model;

import org.json.JSONObject;

/**
 * Created by LinXiangLin on 2015/3/25.
 */
public class NewChapter {


    private String comic_id; // comic_id "361",
    private String order_idx; // order_idx "83",
    private String order_title; // order_title "第83回",
    private String order_name; // order_name "幽香引魂兽（下）",
    private String comic_order_pic_240_240; // comic_order_pic_240_240 "/Public/Images/upload/qingman/comicorderpic/361_83x1427270261_240_240.jpg",
    private String year; // year "2015",
    private String month; // month "3",
    private String day; // day "25",
    private String is_lock; // is_lock "0",
    private String order_size; // order_size "4366"

    public void parseJson(JSONObject jsonObject){
        if (jsonObject != null){

            this.setComic_id(jsonObject.optString("comic_id"));
            this.setOrder_idx(jsonObject.optString("order_idx"));

            this.setOrder_title(jsonObject.optString("order_title"));
            this.setOrder_name(jsonObject.optString("order_name"));
            this.setComic_order_pic_240_240(jsonObject.optString("comic_order_pic_240_240"));


            this.setYear(jsonObject.optString("year"));
            this.setMonth(jsonObject.optString("month"));
            this.setDay(jsonObject.optString("day"));
            this.setIs_lock(jsonObject.optString("is_lock"));
            this.setOrder_size(jsonObject.optString("order_size"));
        }

    }


    public String getComic_id() {
        return comic_id;
    }

    public void setComic_id(String comic_id) {
        this.comic_id = comic_id;
    }

    public String getOrder_idx() {
        return order_idx;
    }

    public void setOrder_idx(String order_idx) {
        this.order_idx = order_idx;
    }

    public String getOrder_title() {
        return order_title;
    }

    public void setOrder_title(String order_title) {
        this.order_title = order_title;
    }

    public String getOrder_name() {
        return order_name;
    }

    public void setOrder_name(String order_name) {
        this.order_name = order_name;
    }

    public String getComic_order_pic_240_240() {
        return comic_order_pic_240_240;
    }

    public void setComic_order_pic_240_240(String comic_order_pic_240_240) {
        this.comic_order_pic_240_240 = comic_order_pic_240_240;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public String getMonth() {
        return month;
    }

    public void setMonth(String month) {
        this.month = month;
    }

    public String getDay() {
        return day;
    }

    public void setDay(String day) {
        this.day = day;
    }

    public String getIs_lock() {
        return is_lock;
    }

    public void setIs_lock(String is_lock) {
        this.is_lock = is_lock;
    }

    public String getOrder_size() {
        return order_size;
    }

    public void setOrder_size(String order_size) {
        this.order_size = order_size;
    }
}
